﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="JumbotCms.Modules.Version.AdminSource._edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>稿源编辑</title>
<link type="text/css" rel="stylesheet" href="../../../admin/otherpage/styles/common.css" />
<script type="text/javascript" src="../../../_data/SysConfig.js"></script>
<script type="text/javascript" src="../../../_libs/jquery-min.js"></script>
<script type="text/javascript" src="../../../scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="../../../style/global.css" />
<link type="text/css" rel="stylesheet" href="../../../_libs/jquery.formvalidator/style.css" />
<script src="../../../_libs/jquery.formvalidator.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({onError:function(msg){}});
	$("#txtTitle2").formValidator({tipid:"tipTitle2",onshow:"请输入原文标题",onfocus:"至少输入6个字符",oncorrect:""}).InputValidator({min:6,onerror:"至少输入6个字符,请确认"});
	$("#txtAuthorSummary2").formValidator({tipid:"tipAuthorSummary2",onshow:"1000个字符以内",onfocus:"1000个字符以内",oncorrect:""}).InputValidator({max:1000,onerror:"1000个字符以内"});
	$("#txtDownUrl2").formValidator({tipid:"tipDownUrl2",onshow:"请上传打包文件",onfocus:"请上传打包文件",oncorrect:""}).InputValidator({min:1,onerror:"必须填写"});
});
//插入预览附件地址
function AttachmentSelected(path,elementid)
{
	$("#"+elementid).val(path);
}
//插入上传文章
function AttachmentOperater1(path,type,size){
	$("#txtDownUrl1").val(path);
}
function AttachmentOperater2(path,type,size){
	$("#txtDownUrl2").val(path);
}
</script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return jQuery.formValidator.PageIsValid('1')">
	<table class="formtable">
		<tr>
			<th> 所属类别 </th>
			<td><asp:DropDownList ID="ddlSortId" runat="server"> </asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 原文标题</th>
			<td><asp:TextBox ID="txtTitle2" runat="server" Width="97%" MaxLength="150" CssClass="ipt"></asp:TextBox>
			<div class="ValidatorTip" id="tipTitle2" style="width:250px"> </div>
			</td>
		</tr>
		<tr>
			<th> 原文来源(外文) </th>
			<td><asp:TextBox ID="txtSourceFrom2" runat="server" MaxLength="100" Width="97%" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 原文网址 </th>
			<td><asp:TextBox ID="txtSourceFromUrl2" runat="server" MaxLength="200" Width="97%" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 原作者(外文) </th>
			<td><asp:TextBox ID="txtAuthor2" runat="server" MaxLength="100" Width="97%" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 作者简介(外文) </th>
			<td><asp:TextBox ID="txtAuthorSummary2" runat="server" Height="120px" TextMode="MultiLine"
                    Width="97%"></asp:TextBox>
			<div class="ValidatorTip" id="tipAuthorSummary2" style="width:250px"> </div>
			</td>
		</tr>
		<tr style="display:none;">
			<th> 原文字数 </th>
			<td><asp:TextBox ID="txtWordCount2" runat="server" MaxLength="10" Width="60px" CssClass="ipt">0</asp:TextBox>
				<div class="ValidatorTip" id="tipWordCount2" style="width:250px"> </div></td>
		</tr>
		<tr>
			<th> 备注/要求 </th>
			<td><asp:TextBox ID="txtRemark" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 原文上传 </th>
			<td><iframe id="frm_upload" src="upload.aspx?ipt=2" width="100%" height="30" scrolling="no" frameborder="0"></iframe></td>
		</tr>
		<tr>
			<th> 原文地址 </th>
			<td><asp:TextBox ID="txtDownUrl2" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
			<div class="ValidatorTip" id="tipDownUrl2" style="width:250px"> </div>
			</td>
		</tr>
	</table>
	<div class="buttonok">
		<asp:Button ID="btnSave" runat="server" Text="确定" CssClass="btnsubmit" OnClick="btnSave_Click" />
		<input id="btnReset" type="button" value="取消" class="btncancel" onclick="parent.JumbotCms.Popup.hide();" />
	</div>
</form>
<script>jcms$$SetDialogTitle();</script>
</body>
</html>
